package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 
 * @TableName api_case_suite_case_ref
 */
@TableName(value ="api_case_suite_case_ref")
@Data
public class ApiCaseSuiteCaseRef extends BaseEntity {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 接口用例编号
     */
    @NotNull(message = "用例编号不能为空")
    @TableField(value = "case_id")
    private Integer caseId;

    /**
     * 测试套件编号
     */
    @NotNull(message = "套件编号不能为空")
    @TableField(value = "suite_id")
    private Integer suiteId;

    /**
     * 用例状态0启用 1禁用
     */
    @NotNull(message = "用例状态不能为空")
    @TableField(value = "case_status")
    private Integer caseStatus;

    /**
     * 排序
     */
    @TableField(value = "order")
    private Integer order;
}